/*
 * app.h
 *
 *  Created on: Nov 10, 2024
 *      Author: zxx
 */

#ifndef INC_APP_H_
#define INC_APP_H_


#define cT0ms            (0)
#define cT1ms            (1)
#define cT2ms            (2)
#define cT3ms            (3)
#define cT4ms            (4)
#define cT5ms            (5)
#define cT6ms            (6)
#define cT7ms            (7)
#define cT10ms           (10)
#define cT11ms           (11)
#define cT12ms           (12)
#define cT17ms           (17)
#define cT20ms           (20)
#define cT25ms           (25)
#define cT50ms           (50)
#define cT100ms          (100)
#define cT500ms			 (500)
#define cT1s             (1000)
#define cT2s             (2000)

// 定义枚举类型
enum Weekday {
    SUNDAY = 10,
    MONDAY,
    TUESDAY,
    WEDNESDAY,
    THURSDAY,
    FRIDAY,
    SATURDAY
};
#define	UPDNLMT(Var,Max,Min)  {(Var)=((Var)>=(Max))?(Max):(Var);(Var)=((Var)<=(Min))?(Min):(Var);}
#define ABS(Value) ((Value) >= 0 ? (Value) : -(Value))

void uART_Send_String(uint8_t *buf,uint8_t len);
void uART_Send_Hex(uint8_t *buf,uint8_t len);
void zSinTabINIT(uint32_t *arr);

#endif /* INC_APP_H_ */
